home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-11-08 | 1.6 KB | 55 lines | [TEXT/MEDT] |
- ( This is a test of version 1.5 of the 'Fix Red Ryder procedure' procedure. It
- ( also demonstrates some of the problems...
-
- ( Check the simple stuff...
- MENU OFF
- MENUDOES01 23
- ESC OFF
- DEL ON
- LET EQUAL `0,~1
- COPYINTO ~2,`3
- SCREENCOPY
- CURSOR H
- CURSOR A
- TEST `4=5
- IF YES MENU OFF
- IF NO MENUDOES03 21
- IF ERROR ESC ON
- IF NO ERROR DEL OFF
- ONPANIC SCREENCOPY
- ALERT1 THIS_IS_A_TEST/CURSOR H
- ALERT2 STILL_A_TEST/CURSOR A
- ALERT3 THIS_IS_REAL/COPYINTO ~2,`3
-
- ( Now for some increased complexity...
- TEST `6>~7
- ADD `8,~9
- SUBTRACT `0,~1
- IF YES TEST `6>~7
- IF ERROR JUMPTO (DONE)
- IF NO ERROR IF NO ALERT1 DEL ON/ADD `8,~9
- IF ERROR IF YES ONPANIC ALERT2 SCREENCOPY/ALERT3 END/LET EQUAL `0,~1
- JUMPTO This JUMPTO should get a length warning if using 20 character limit
- JUMPTO Warn this JUMPTO too!
- JUMPTO But not this label !
- IF YES JUMPTO This JUMPTO should get a length warning for exceeding 20 chars!
- This line is exactly 79 characters in length so should NOT be warned.......79>!
- This line exceeds 79 characters in length by one char so should be WARNed..80> !
-
- (Check for label lengths...
- ( 10 20 30 40 50 60 70
- (23456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789
- (This label should not be converted if using 20 character limit
- (Nor should this one!
- (But this label will
-
- ( Check for string variables: ~0 ~1 ~2 ~3 ~4 ~5 ~6 ~7 ~8 ~9
- ( Check for numeric variables: `0 `1 `2 `3 `4 `5 `6 `7 `8 `9
- (DONE)
- END
-
- (The following should not be affected except for variables or as noted:
- COPYINTO ~0,BETTER ESCAPE DELETION OF THIS LINE
- ADD `0,1
- SUBTRACT `2,3
-